﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Threading;

namespace SendTile
{
    public partial class _Default : System.Web.UI.Page
    {
        System.Threading.Timer t1;

        protected void Page_Load(object sender, EventArgs e)
        {
            AutoResetEvent autoEvent = new AutoResetEvent(false);
            t1 = new System.Threading.Timer(update_counters, autoEvent, 1000, 300000);

            Label1.Text = Global.repit.ToString();
        }

        void update_counters(Object stateInfo)
        {
            Label1.Text = Global.repit.ToString();
        }

        protected void Label1_Unload(object sender, EventArgs e)
        {

        }

        public void SetLabel1(string text)
        {
            Label1.Text = text;
        }

    }
}
